﻿/*------------------------------------------------
// File Description: ObaSite DataBase Entity
// Author:			 Crane
// Create Time:		 2020-06-20 14:20:33
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// OBA检测站点
    /// </summary>
    [Table(nameof(ObaSite))]
    public class ObaSite : BaseEntity
    {
        private string _obaNo;

        #region Public Property
        ///<Summary>
        /// OBA检测单号
        ///</Summary>
        public string ObaNo
        {
            get { return string.IsNullOrWhiteSpace(_obaNo) ? string.Empty : _obaNo; }
            set { _obaNo = value; }
        }

        ///<Summary>
        /// 过站类型
        ///</Summary>
        public Enum.SiteType SiteType { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// OBA检测站点
        /// </summary>
        public virtual DbSet<ObaSite> ObaSites { get; set; }
    }
}